<script setup>
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import Login from './views/Login.vue'

const route = useRoute()

// 判断是否是登录页
const isLoginPage = computed(() => route.path === '/login')

// 判断是否已登录
const isLoggedIn = computed(() => {
  const user = localStorage.getItem('user')
  return !!user
})
</script>

<template>
  <router-view />
</template>

<style>
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

#app {
  font-family: 'Helvetica Neue', Helvetica, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  width: 100%;
}
</style>
